import ActionButton from "antd/lib/modal/ActionButton";
import {GET_ALL_LIST_INFO} from "../actionType";
// 在index中保存数据到 session
// let states = sessionStorage.getItem('state')?JSON.parse(sessionStorage.getItem('state')):{};
let data = {
    state:sessionStorage.getItem('state')?JSON.parse(sessionStorage.getItem('state')):{}
}


export let indexReducer = (state=data,action)=>{
    switch (action.type) {
        case GET_ALL_LIST_INFO:
            console.log(action.data)
            return {...state,state:action.data}
            break;
        default:
            return state
            break;
    }

}